#include <fcntl.h>
#include <sys/stat.h>
#include <mqueue.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <strings.h>
#include <signal.h>
#include <time.h>
#include <wait.h>
#include <stdbool.h>

const int FLAG = O_RDWR;
const char *NAME = "/my_msg_queue";
mqd_t mqd;
int main(){
    mqd = mq_open(NAME, FLAG);
    if(mqd < (mqd_t) 0){
        printf("ohno.\n");
        exit(0);
    }
    printf("%d.\n", mqd);
    mq_unlink(NAME);
}
